<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登陆_nodejs + socket.io.js聊天室</title>
    <script src="/js/jquery-1.8.3.min.js"></script>
    <style type="text/css">
        body { font-size: 12px; margin: 10px; }
    </style>
    <script>
        $(function() {
            $('#form').submit(function() {
                var input = $('#username');
                username = $.trim(input.val());

                if (!username) {
                    input.focus();
                    return false;
                }

                return true;
            });
        });
    </script>
</head>
<body>
    <form action="<%= wwwroot %>login" method="post" id="form" />
        <input type="text" id="username" name="username" />
        <input type="submit" value="登 陆" />
    </form>
</body>
</html>